Save document in mongodb