Make db properly configurable.