Fix dumb errors in the rlm_sql reconnection logic. Fixes #651