If a item is removed from the database it should recursively remove all instances of that object as well. This is marked in the code with a TODO comment, search for it.