I think ideally, if one had more time, this report data could be cached in Redis (or some other in-memory store) and retrieved quickly. The data cache could then refreshed regularly depending upon need. This is a bare-bones implementation, as time was a constraint.
deploy: $ now -e DB_CONN_STRING=@db_conn_string