app modified to add db query and returning value to list view