createdbscript fixed