Added afterquery and set up a minimal http server to supply it the json data extracted from the csv