refactored query generations
- changed query template method to sql
- extracted query generation into Dossier::Query
Big refactoring of report results.
Fix example