nightly checkin (broken)
nightly checkin

* fixed up UI
* altered db to include pending message queue for device.
* Next up: device command stuffs.