update models foreign keys