Progress on printing/emailing statements

Still getting db errors but before wasn't even getting that far.