Add db v4 migration

Fix busted v3 dbs.