 
 RETURN QUERY
 
-SELECT id
+SELECT sr.id
 FROM source_region sr
 LIMIT 1;
 

) AS
$func$
BEGIN

DROP TABLE IF EXISTS _odk_settlements;
CREATE TABLE _odk_settlements AS

 	,CAST(ovs.settlementgps_longitude AS FLOAT)
 	,2 as region_type_id --settlement
 	,1 as office_id -- nigeria
 	,REPLACE(settlementname,' ' ,'-') AS region_slug
 	,now()
 	,s.id
 	,CAST(0 as BOOLEAN)
