changed query logging to debug instead of info