Fix MySQL Errors