printing out the SQL queries in debug mode