Add logging to MySQL