Update bin/clear-db to keep new genericaccount table.
Add logging around db session creation and teardown.

We won't keep this in permanently, but we REALLY want to know exactly how the
connection pool is getting exhausted.