Adding mongo bindata to file (untested)