updating - making email functionaliy pull email info from db