Update for new db_transaction{,_generator}
Test Plan: make test still works with new swh.storage
Differential Revision: https://forge.softwareheritage.org/D335