simple script to migrate posts from wp database