Fix wrong require url and db connection in ajax team response php

Remove the require on non existing extern file and modified the loop to readin the results of db request