in reply to A phantom death

You could try to wrap the dying statement in an eval { ... } block, and inspect $db->errstr after that. If it's a DBI error, that might contain some useful information.