Thank you, Jade. I am able to see the error. I just need to program responses to DB errors. There must be a method to access the real error. Do folks just throw up a generic "there was an error" message and disregard dealing with it?
I haven't done this much, but a lot of good error messages can be shown when you're using ad_form or ad_page_contract. Maybe you can give us more info on what you're trying to do?