update masterkey
update entity relations in data model