Create a unique index for the data table
Improve update method