Updated DB.pm to simplify reading the code.