Refactored class DB2.