Removes a GeoAlchemy statement.
Fixes a lot of problems about SQL.