updated email functions/controller to work with the new email table
- also added date to emails
Merge pull request #4 from mv740/master

updated email functions/controller to work with the new email table