Add some null checks.
Update the cursor on Item creation.
Support database update as well as insertion.
Enable Item editing once again.
Close cursors when no longer needed.