added query class for custom advanced searches. There are a lot of different searches, and currently the user needs to know how to do it. It would be nice to provide a nice interface for a few of them at least