convert reports using reports_forms/all_forms to SQL

On converted the ones that were doing lots of individual queries.

Best to review commit by commit.