use write_concern instead of deprecated safe and write_options