Refactor LoginDatabase migration
The migration code had some unnecessarily complicated parts which made
https://codereview.chromium.org/2127533003/ harder than needed.
This CL pulls common database tasks related to table scheme migration
and creation into a separate class, SQLTableBuilder. During that the code
is also cleaned up and made safer by using transactions.
The CL also fixes two typos in the test files.
BUG=
413020
Committed:
https://crrev.com/8ff2f69c0743ca2b95fd9eac2d9b250e599eeedb
Cr-Commit-Position: refs/heads/master@{#405116}