more work on the datomic backend