Retrieve Measurements Iteration #2

Getting JSON responses from the DB. Currently have to figure out how to
create objects from the response.
merged with retrieve