Added table devicehistory