Relation Stuff (+ lots more)

This adds some basic geometries to the relations, and fixes issues with saving to the database (through the use of queues, which only start once all the required elements are in the database).