added avg_rating calculation to food model