correct local_settings to use the correct db