change download.py for Mongodb and add some log output