Next rework MySQL class