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