Added basic support for writing WHERE clauses.