It must be done like this because there is situtation where app_config not exsisit in db.