corrigido BD e algumas funcoes
Merge branch 'master' of https://github.com/fagnerng/homeAutomation