Removed the location_source definition.
Added the main query.
Closes sales_pgconn on end.