class to work with Mysql