Add the code for creating the dependency graph.
Add classes QueryBuilder, QueryObject and SQLBuilder.
Implement the query builder for non-recursive positive rules without aggregates, builtins and negated literals.
Implement the SQL builder for Postgres.