use pig to extract data from teradata database