Added queries to get posts