Fixing bug in prep script.

The prep script fixes an issue with running create_default_collections
on older databases which haven't had their indexes fixed.