TMDM-7434: update ConfigModel for being stored in db and add related junit