first go at creating the report table based on a query