db class update