added a function that update indexes when ItemTable::add() is called.

We have to add update indexes when ItemData is added to the group
that is created by ItemTable::addNewGroup().