common loadDataTable function