DB class corrected