fixed method deleteFavorite in FavoriteTable