Adding the unique constraints