Testing API connection with PHP/MySQL