Added logging with SQL models
Added lights for activating relays
TODO: need to ajaxify the lights