mongo update, old file cleanup