add mysql class for product database, introduced OOP style