Added saveTopPostsToDb in popularPosts.js.