update mysql object after changing config.js