edit script by db