make sure to get all rows from table data

When the table data retrieved is less than total rows in table, then
execute table data call again and append the remaining data