Favorite view and database