Added uniqueness constraint check on update