Auto-migrate database on load

- bump database version to 4
- create Migrator class, add migration from v3 to v4
- database reload tests weren't actually doing anything differently,
  fixed that