read data into the table