Change app.php, Added PDO connection. 

I changed app.php and more.
Added PDO connection, in app.php.