Fixed logging in the MySQL class