Fixing issues in PDOAdapter.php