Adapt to new mgo api.