Better email handling

- Handle email submissions using SQL