modify db script and mapper