update average rating after making rating