Revert "NixNoteのUpgradeDbメソッドを不要部分を削除。"

This reverts commit 4f64dbba0a56c86271272d9809a5df97bd955815.