Queries and their related index-keys are now implemented using protocols instead of metadata