added 'auto-fix-database' feature if sensor value decreases somehow