Stop using the storage.db attribute directly
Summary:
Add a level of indirection to allow swapping out the implementation of
the db attribute
Test Plan: once again, make test keeps on working
Reviewers: Reviewers!
Differential Revision: https://forge.softwareheritage.org/D324