Improved query builder

Added ability to get all the posts.