Add schema migration plugin, fixes #7