MySqlDB class implementation