a db class