mysql class updated