Now able to add new items and update existing ones