script update for database