add Index and Unique attributes