Added logging to the MySQL support