Email saving

Changed which emails get saved to the database and moved the process of fetching emails into a background worker.

If jobs fail they do not requeue themselves.