refining the json generation, adding more fields to the teams query table