Issue #46: Refactor DBHandler

2 jobs for 46-refatorar-dbhandler-e-transacoes in 1 minute and 32 seconds (queued for 3 seconds)