Add unique constraint on id column