Added support for logging queries only

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>
Merge branch 'master' of github.com:cognovis/intranet-collmex