Changed the Database class to extend PDO and changed the Config class to use a singleton