update model relations