fixed attest sql query in list_measurements()