pushing query to log