Added a new helper method to MySqlConnector (getinsertquery()), and modified the code of insert()