Adds data to the posts collection