building objects out of datomic entities, functions accrete new facts to the database