Fixing migration to actually do all datapoints
Fixing bad migration in segmentations and adding SMTP support for prod environment