Deletes oldest rows from sensordata row count exceeds a given value
Removes time bug