Fetch totals and standard deviation (if available) for inboxes and emails

Also, reduce the number of queries we're making