Fix logic in statistics cursor open.

Was always copying the connection settings, rather than prioritising
the cursor specific setting.