Add SQL queries to debug mode