in reply to DBI use

Please don't just post a bunch of code and ask us to figure out what is wrong. At the very least you should post the actual error messages that you get.

Michael