complete the model of connect the mysql database