updating db class