Database hookup for favorites.