Maybe you should copy what I do in the other services and look at an envvar for the connection string. That lets you run tests on sqlite most of the time and hit both sqlite and postgres in production.