modify the sql script