db: Fix migration with partial data

It's possible that there are incomplete data. Don't fail
migration in those cases

Fixes #9
2 jobs for wip/sadiq/fix-migration in 3 minutes and 45 seconds (queued for 3 seconds)