Migration script from old db to new