remove a bunch of database.NewDB()
Created by: camdencheek
This PR is me looking for uses of database.NewDB()
and removes
them by propagating down a database.DB
from a parent context.
We can do this because, almost everywhere, there is a database.DB
somewhere in the calling path because we've removed most globals.
The changes are very mechanical. There are many commits just so I could keep things incremental.