                         group by InbredSet.Name
                         order by InbredSet.Name
 """
-      {:ok, rows} = DB.query(query)
-      Enum.map(rows, fn(x) -> {id,name,fullname} = x ; [id,name,fullname] end)
+    {:ok, rows} = DB.query(query)
+    for r <- rows, do: ( {id,name,fullname} = r; [id,name,fullname] )
   end
 
   def menu_types(species, group) do

      order by Tissue.Name
    """
    {:ok, rows} = DB.query(query)
    # Enum.map(rows, fn(x) -> {tissue} = x ; [tissue] end)
    for x <- rows, do: ( {tissue} = x; [tissue] )
  end
end


  def species do
    {:ok, rows} = DB.query("SELECT speciesid,name,fullname FROM Species")
    for r <- rows, do: ( {id,name,fullname} = r; [id,name,fullname] )
  end

  def datasets do
    {:ok, rows} = DB.query("select InbredSet.inbredsetid,InbredSet.speciesid,InbredSet.name,ProbeFreeze.name from InbredSet,ProbeFreeze where InbredSet.inbredsetid=ProbeFreeze.inbredsetid")
    for r <- rows, do: ( {inbredset_id,species_id,inbredset_name,full_name} = r ; [inbredset_id,species_id,inbredset_name,full_name] )
  end

  def menu_species do
    {:ok, rows} = DB.query("SELECT speciesid,name,menuname FROM Species")
    for r <- rows, do: ( {id,name,fullname} = r; [id,name,fullname] )
  end

  def menu_groups(species) do
