set idAttibute of model to _id