For recovering queued queries, we need to recover the session. Since queued queries belong to a session and the submitter thread needs to acquire the session sothat the session level variables like conf, database has to be set before submitting. We don't have session restore capability as of now, so not recovering queued queries that as part of this pull request.