Changed return type of fetch_data from dict to tuple