adds unique constraints