Update utility.py

Changing getAllJSON() and getSampleResults(query) to return results consistent with the DB view changes