Switch back to db instead of group.
Change format returned by /queries for telegraph changes.
Change 'sql' to 'query'.