adjustment to store id as well as content and tag, and to generate queries for distinct ids rather than tags