ALTER TABLE geospatial_object DROP COLUMN "bounds";
SELECT AddGeometryColumn( '', 'geospatial_object', 'bounds', 4326, 'POLYGON', 2 );
CREATE INDEX geospatial_object_bounds_idx ON geospatial_object USING GIST ( bounds ); 

ALTER TABLE raster_entry_object DROP COLUMN "valid_vertices";
SELECT AddGeometryColumn( '', 'raster_entry_object', 'valid_vertices', 4326, 'POLYGON', 2 );
CREATE INDEX raster_entry_object_valid_vertices_idx ON raster_entry_object USING GIST ( valid_vertices ); 

VACUUM ANALYZE;