protect against null db
all array prefs are string arrays