Moved recipe_name_id method and indiv_recipe_info query to outside the routes.