Modify db struct