allow the apply trigger to work on non-replicated tables

We use this for replicating sl_confirm rows
fixing to how we use PQcopyPutData

1. Check the result status at the end of the copy
2. Put a newline after each line

Also start passing sl_confirm rows to the logApply trigger - later
we will need to improve this to prevent loops