add data to posts collection