add getGroups function to pull the list for the groups drop down from Telegraph.queries