Function to retrieve GDP data