Get CargoDocument and LegsDocument saving to MongoDB correctly.