Introduce datomic for categories
Remove use of db-util
Make dfind-unique-years-in-transactions take db as param