database: remove dbutil-based constructors
Created by: unknwon
Remove a few dbutil-based constructors in our database package, as they are not mockable in our tests.
This is the result of a time-boxed effort.
Test plan
Unit tests
Part of https://github.com/sourcegraph/sourcegraph/issues/26113