my $sth = ($dbx->ping ? $dbx : $dby)->prepare('select 1+1');