Added code to support emailing of feedback.

Added Database SQL