Adapted recommender to work with new db layout