Adds ar_id sorting to database.archive and fixed rccontinue for api.recent_changes