add Datomic Datalog support for queries over the AST