added queue and internal query indexes,

Queue builds when connected is false and is fired when connected is true
via polling per constant in settings