added database persistence for config