added measurementhistory table definition