data access writes now but does not read

the read function is having issues based on converting list to array