changed deprecated "safe" option to write concern