Datomic schema improvements