Enable query logging #108