updated with table for emails in repository