Fix replicate.db script

With help from @alexmuller, fix replicate script after being moved by @robyoung
Merge pull request #160 from alphagov/fix_replicate_script

Fix replicate.db script