Updated mongodb transfer script