QueryPurger Should retry with a timeout if db connection is not working....

... Also There should be a limit to number of timeouts
This is actually not adding any delay between successive attempts, only that number of attempts is capped by PURGE_MAX_TIMEOUT.

Also, once timeout is reached, query history would be lost,  are we ok with that?