reports: dr18 report - added comments to queries

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

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