first attempt at getting data from table