adicionada funcao generica para db.
Merge remote-tracking branch 'origin/master' into Dias-src
calendar