Implemented the toString() method in DBManager.