Making a simple datalog engine in Clojure.