The script reads sql_mode from agent_ids.json to determine which SQL backend to use.