Add management command to create the email opt-in list.

Simplify implementation

Fix a bug with org capitalizations

Fix sql error

Logging