Small objectoriented query assembler

Added a small objectoriented class-system that can produce more sophisticated (only select's at the moment) queries.