changed model on permit to allow new varible avg_rating to be permmissable attribute