working with db config