changed home.js route to take allPosts table as a param