edit db class to meet new db