I\'m trying to make groups of geometries that share a border. All borders are written to a table and have their own id. Then there\'s a table that maps the borders to the geomet