Fixes bugs when migrations are run by rolling back the the migration ver...

...sion -1, creating the application at that system version, then running the migration