Adjust schema and fix js to save, load, edit polygons and points for site details