moved call to database out of food:edit into app.rb