Generic Store and Query operator