postsData and storage refactoring