Update classes/class.database.php