make db configurable
0.3.8