add model version
fix bug in modelStoreNeedsMigration