MySQL Database usage

So I am using the SQL database connection for the first time and have been able to successfully connect the database to the plugin. How do I access and use the information from from the database? The plugin says to add a query so do I do it there and somehow use that query in the program or is there an option to run a query at a certain point in “workflow”?