Update database.class.php