Make imports play nicely with slaves

When we tried to add read to slaves recently, importing failed. This
revisits that piece of work.
Merge pull request #119 from alphagov/import-with-master-db

Make imports play nicely with slaves