built first query on get classes with jsonencode on the return. ABout to test the GET