create model and orm for 'history'.