Success email code and DB changes
last_email_in_branch added, emails switched to committer