Why are you blessing the reference yourself? Class::DBI does a lot of magic behind the scenes so it might be related to that. Why don't you either retrieve() the object or create() it?
Comment on Re: Strange behavior: Class::DBI with CGI::Application