in reply to Insert into database table

There are some strange things in your script.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law