Add missing imports for MIME.
Add indexes to collections.