Change the architecture of class mysqlMananger