 
   RETURN QUERY
   EXECUTE format($string$
-              SELECT description,
+              SELECT id, description,
                 name,
                   aggregate,
                   replace(split_part(id,'".', 1),'"', '') source

  search_term text,
  relevant_boundary text DEFAULT null
)
RETURNS TABLE(description text, name text, aggregate text, source text)  as $$
DECLARE
  boundary_term text;
BEGIN

CREATE OR REPLACE FUNCTION OBS_GetAvailableBoundaries(
  geom geometry,
  time_span text DEFAULT null)
RETURNS TABLE(boundary_id text, description text, time_span text, tablename text)  as $$
DECLARE
  timespan_query TEXT DEFAULT '';
BEGIN
