Adding .write_script() to pipedown (which I thought I did 6 months ago)
Adding dbaddinj change in redmin patch # 909 back into single stage pipedown