Created a seperate thread for database logs.
Merge branch 'master' of https://github.com/THIRD-i/sensor-supervisor