Refractured Mysql.cpp