b/2497120 Added method for rebuilding db in upgrade failure

We're getting crashes from experimental testers that look like the user
downgraded then upgraded their phone without doing a data wipe. Added a
catch for this that will wipe and rebuild the db if the upgrade fails like
this.

Change-Id: I8d2f28dd7a4a312f56573e3fffd2d8e3a2539350
1 file changed