Codechanges and new methods inside class.database.php for PDO handling.