Added UNIQUE constraints.