Changes database config.