fix bug with sensors duplicates, upsert didn't work when saving sensors.
add support for exporting charts.