Activity tracker with fast and extensive query mechanism