pass config.mysql object to db.connect