Change MySQL class to SafeMySQL