Fixed Mongo db connection doesn't close issue. Because when we run cron job, we don't need auto connect to be true, which reconnect to mongo db. Also fixed a URL malware bug.