PDO update for view.php; fixed header_req file too

make sure to change the password to yours