script to migrate sets onto new db