wrap the db class