implement getting table data