Update avg_rating method to return 0 when there are no ratings