fix sql server unique constraint