Make sure you have the same version of Class::DBI and Ima::DBI installed on both machines. Also, your DIE handler may be messing up exception handling in Class::DBI (or anything else). A universal DIE handler is not safe to use with code that throws and catches exceptions.