move logic saving only selected values logic to reusable function
move logic saving only selected values logic to reusable function

nooproblem/influxdb,influxdata/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb