Updated mysql class.