added a new file that displays blog post. also addd new methods to query class