update db class