Add a base-class with query helper methods.
Merge pull request #9 from 4teamwork/deif_query_base

Add a base-class with query helper methods.