query server with php and returning routes works