Added files to save emails to database.