Made changes to the database table model to support querying based on
the operators built from the sql query.