update by idmfc if exists, otherwise - by model code