add data to the posts collection