Add a layer of indirection to enable the use of different databases than postgres