New GetRows function to retrieve table data.