Update QueryHandler.java

Handler Implementation