In favorite photos table, added index on favoritedDate.