Fix database migrations.

Run all required migrations, not only one.