added index json view for the foods model
changed schema and model associations, now users has many foods, and foods belongs to post, addded get user method to food so it can assign the appropriate user id