db class.