more work on gpkg remove function, compiles now