Fixed #22998 -- Updated the fast_delete logic for GFKs
PEP8 cleanup
Added forgotten files from commit 28efafa24c83
Adapted SpatialiteGeometryColumns model to spatialite >= 4

See also:
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=switching-to-4.0
Fixed #23030 -- Properly handled geometry columns metadata during migrations

Thanks kunitoki for the report and initial patches.