Updates the database config.