convert reports using reports_forms/all_forms to SQL

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