Global reports are the ones with the field global = 1

Previously, global reports were the ones with courseid = SITEID, this
increase security and privacy of reports