code used to generate initial january report

"Update on Email Deliverability Reporting" email;
start adding database support

also add some commenting/fix some commenting (not finished)