Added modification of items, modified addItemActivity so that it either
creates or modifies an item.