cleanup
cleanup and comments
refactor extract method get_sensor_id
record bytes in database, not rounded KiBs
put actual intervals into database, not the config value