Checkout history work. Fixed encoding issue with mssql output