make db configurable