Update database for recommendation.