Log database queries to the console.