Add unique constraints to tables