Add ensureIndex
Use addNewDocument when possible, add sample for ensureIndex