Add option to enable query log and disable it by default