prevent the global DB variable from being shadowed by a local instance

Fixes the panic in the tests, but they still fail due to the users public key not being set anywhere