wire through ctx for all database (gorm) operations (#1043)
This involved both adding `.WithContext(ctx)` to any database calls, and
wiring through `ctx` in a couple functions which should have had it
already.
The one place I didn't wire this through is gorm auto database
migrations in the setup command. It felt less necessary during process
initialization, though I can add if requested.