reports: br17 reports - added comments to queries

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

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