add constraints (or unique index)