added read unread state, moved from prefs to db for storage