Added ping_resource subroutine for $dbh