Copy the major,minor versioning thing used for repo.sqlite.

This means an older version of pkg can tell if it is compatible with a
new version of the local.sqlite schema.