Update class.database.php