added conditionals for nutrition and rake db