Remove dialogs.
Store the item's id inside the object.

This is the fundation needed to support item deletion.

Up to this point, we've worked under the assumption that the item's
position inside a ListView is the same as its database id. This is
no longer true once we start supporting deletion.