Refactored ibdint.py to use db.models and solve the problem of
cases where I used part of some interests to offset debits
in some places.
Ibdint object can now write its entries.