added new fields to aggregated tables
rewrote _get_geojson() to be generic for all entities, depending on specified metadata