conditional logging of queries only for development enviroment