Reporting: properly close db connection

Close the db connection at the end of each DjangoORM import, not when
the reporting collector shuts down.  The collector may not have even
opened a connection, in the case of a storage backend other than
DjangoORM.

Fixes #157