Removes residue.
Refactors the creation of transactions.
Upgrades datomic.