boolean type for prefs replaced by int for db compatibility