Initial emal notificaiton work

First attempt at email notification with database - stored text and
templating