[noticket] Add option to enable SQL logging