Updated record mapper to use write connection mode