Reverting the new DB migration script added for bug 137527

The changes are made inline on the existing script instead

Change-Id: I6fd9f02737bae573569d6d196bcd977629f1a177
Closes-bug: #1398644