add code experimenting with migrating emails to postgres