set db pref