converted deprecated 'safe' flag to write concern 'w' = 1