Add functions for finding parents of a child in a datomic tree without cycles.
Add function for merging duplicate entities (i.e. due to errors in unique attributes).