Fetch data from table and display as a table