clean polygon SQL