add script for migrate from old db