core: prevent crash when checking source of null path
migrator: update classes and add code for sqlite

Update the migrator so it knows about the latest classes and what they look like.
Add code to the migrator to handle the new sqlite backend for settings.