Logs INSERT, UPDATE, SELECT queries