Fixed some errors caused by SimpleMySQL