Changes and dumps database config.