Delete terms; update term grid; unique index for terms