issue #390 SendEmail now works in multiprocessing + tests (with mock smtp server)
A few tweaks to exporttodatabase - some tests weren't testing anything