You can use this command to connect to your database and issue SQL queries or INSERT/UPDATE/DELETE statements. You can also run any procedure created and stored in your database. If you want to transfer data from your database to some other application then you can use these commands and Loop for each row in SQL Query dataset command.
Following is how your task should loop if you want to transfer data from the database to the target application.

Tip: When you use the database connect command to select your target database, we suggest you to use the 'Test Connection' button to ensure the database connection is established correctly.
