Fixed issue where closure tables would only be shown correctly when
the SQL returned results in a particular order.

Switched from AddChild() to AddRelationship() and now relying on the
full relationship tree to be faithfully returned from SQL, which is
a reasonable assumption.

Also fixed queries to do what they said they would actually do. This
was necessary for the current behavior.
Merge branch 'saveentry'

Fixed the way that the relationships are pulled down from the database.