Fixed MySQL Errors