reconnect to the sql server before each sql query