Refactored dbr to allow for parser and config unit testing