add migrate posts sql