Insert a document using BasicDBObject