Inserts new documents into the collection.
InsertFlags flags = InsertFlags
Note that if the
_id field of the document(s) is not set, typically
BsonObjectID, the server will generate IDs
automatically. If you need to know the IDs of the inserted documents,
you need to generate them locally.
Exception if a DB communication error occured.