Modified upload mongodb crud.