added mongodb to download filelist
sort filelist before writing it