Added a secondary index for the agent_id in the agents collection