get_data_table function

Get data from a specific table