Added comments to explain the behavoir of the constructer for the DB class.