update database and scripts

update database and scripts