update database.class.php