Fix bad .9's

(cherry picked from commit c7651a92098a1d2cb29f67eccebe0d528fd1d4a9)
Wipe and re-create database on downgrade.

Not a very common situation but should fix some errors that could
 arise from flashing an old ROM over a new one, without wiping data.

Change-Id: I27f2a00396761105987830921bb3f8cb339d2171
(cherry picked from commit 484eab9e85e3161a246b8676dfdfc45c7ad9292b)