get config from db