Improving historical device data by granularity

A message has been split into a new topic: Disk full / help with database cleanup