Fixed MySQL returned data. Added email variables into notification email.