Some stuff with deleting nodes and creating associations

Have fun with this