Update GetAllData function  to return also time

# Update sql command
# also update the UpdateSortList function