in reply to Re: DBIx::Class connection
in thread DBIx::Class connection

It feels like the wrong place to do it to me.

This is very much the case yes. See my answer to the OP.

Cheers