apply same fix we just applied to to remove gpkg function to upgrade function