modify db class