Uses RESTPolling.queries for storing group_id's

Signed-off-by: Oren Leiman <oren@neutral.io>