missing SQL for agent_data table.