Support nested clauses in SQLite backend and generalized the creation of clause SQL and binding.