enable debug.log check if query is being sent to db