Add file_attributes to study report. Remove table aliases from root study query to aid where-clause insertion.