Fix bug with test.php

$dbh was being reassigned after also setting it in dbconnect.php