Made database class an extension of PDO.

Also pulled inclusion of the Request class higher up (ie. index.php).