PR for code review.

This is returning the id for the newly inserted document. I debated whether to return the whole document just with the ID set, but I decided that didn't make much sense.