some work on upgrade in gpkg