read config from DB