Allow to disable logging of SQL queries