1st and 2nd readings now display correctly

new sql statement