adding secondary index queries