refactored some more code, and how queries are initialized
added degree bar chart