Remove duplicates, add GIST indices, add geom to WFS layer