Fetch data from table