fix replication always use write host

The options which has been prepared for the replication code to read was not passed to the getConnection() call.