Add schema version to StoreSqdb and normalize tables