Generic, multidimensional, datomic-persisted queue