saving region prefs to db