Fix issue with downloading session data

In some cases the `ref_id` for a session did not match the SQL ID.  This caused issues in downloading sessions.
Do not auto-run server threads