more work upgrade functionality for gpkg