Added undo functionality/Cleaned up upgrade code

Undo bar works! Used git submodules to link project
Removed switch statement from upgrade code for database helper