A bunch of work on migration scripts