Added sample query

Very simple connection/query classes. The complexity can be increased as
the DB structure and parsed input forms become known.