reports: br17b report - added comments to queries

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

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