in reply to DB Connections resetting

As WizardOfUz suggested, double-check that your children aren't sharing the parent's DB connection and then closing it out from under the parent's feet.

If that's not the issue, try setting:

$dbh->{mysql_auto_reconnect} = 1;
after opening your connection.