amend mysql class