Don't access self.db directly in ArchiverStorage
This syncs the archiver to be compatible with the changes from swh-storage!77 (closed)
Test Plan
make test works when swh-storage!77 (closed) is applied to swh.storage
Migrated from D326 (view on Phabricator)