make db range configurable