add sql for migrate posts