Modify db data insert code