added Duplicate Unique foreign key checking