Record nodes table. TODO: Remove duplicates

Duplicates should be removed using an RTree or something similar.