text: CREATE FUNCTION networkapi_selectblobbyname(sensorid VARCHAR(24), filename TEXT)
      RETURNS TABLE(
         	"ID" BIGINT,
  		"SensorID" VARCHAR(24),
  		"FileName" TEXT,
  		"Path" TEXT,
  		"StorageType" INTEGER,
  		"Timestamp" TIMESTAMP WITH TIME ZONE,
  		"FileSize" BIGINT
                   )
      LANGUAGE plpgsql
  AS $$
  BEGIN
  	RETURN QUERY
  	
  	SELECT b."ID",
  	       b."SensorID",
  		   b."FileName",
  		   b."Path",
  		   b."StorageType",
  		   b."Timestamp",
  		   b."FileSize"
  	FROM "Blobs" AS b
  	WHERE b."SensorID" = sensorid AND
  	      b."FileName" = filename;
  END;
  $$