more work on gpkg, write initial status file properly