To doctor the accounts.
To falsify them. They are ill (so far as you are concerned)
and you falsify them to make them look better. The allusion is
to drugging wine, beer, etc., and to adulteration generally.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894