Add a new table to the database dbversion where we will store the schema version number. In -exportrun save the version in the output files. Then in -importrun insure that the input file version matches the schema.