Add datomic query for getting unique transaction years