PHP queries beginning connection to frontend.