added some db code to get device list and temp/time/zone settings.

Also created very basic agregator for current temperature