Add upgrade step for document references.
Add document to upgrade command; make item type an argument.