Query for yesterday almost complete

Fails if yesterday's date is missing, otherwise works. TODO: 1.Check for
empty result set. 2.Add row formatting to table.