updated mysqlhelper with new database structure