Show a log message for SQL queries.