Bugfix inside class.database for PDO.