use db settings instead of CONFIG_* constants