Fix witness' repl_monitor data inserts and copying master's configuratio...

Don't overwrite `res` when copying the configuration from the master, this allows repmgrd to start properly in witness mode on witness nodes.

Adjust `INSERT` statement to have correct number of fields so it works, in case `--monitoring-history` is being used.