fix query flush on logout

Logging out throws an error because flushQuery() does not exist on Query objects.

Not anymore!