modify db related classes