mysql class replaced