reports: dr27 report - added comments to queries

Changed the code structure so it will be more readable
and added commets.

Change-Id: Ic9bc62cc7e123f3d825eb8f89bbe6edc3978935e
Signed-off-by: Shirly Radco <sradco@redhat.com>