Database preparation scripts.
More minor improvements, including widespread emailing.
Merge remote-tracking branch 'origin/master' into back-end-working