modified ./script/udpatedb.pl