Revert "don't disconnect and connect to the db all the time"