- added a localdatabase class wich stores data in a local json file

 - the update multilevel method in device now corrects the temperature value with the offset found in the local database