Fix db migrations.

Didn't do this properly in 2699a6101756a1c97b185e13e0e45afc457314e8.

Kludge as the model haven't changed, just moved from one app to another.

Change-Id: I57da68cdf62bbcde7dd18f84107346b9088b126c