updated mysql class