swh.storage doesn't expose a db attribute any longer
Also make sure storage objects get garbage collected properly, so that automatic database cleanups keep working.
Test Plan
make test passes when swh-storage!77 (closed) is applied to swh.storage
Migrated from D327 (view on Phabricator)