create posts from db and update status flag in db to posted