fixed source version should be java 1.7
removing unused imports
Query Controller: returning the result of the select query in json format in the http response