Added operators and query classes

Add the operator and query classes. This will be a framework for
building support things other than exact matches into the database.