For backup, we need to first apply logs before migrating, because of that we need to avoid running migrations in the constructor. The alternative is factoring out the migrate call, but creating database work on these assumptions for years no,w and I don't want to change it.
Unfortunately, Emscripten is not great with default params, so I had to add it everywhere
Depends on D14743