More ignoring!
Fix code to reset the database when upgrading fails

Previously the app crashed when upgrading the database failed. Now we
reset the database version and run the upgrade code again (recreating
all tables).