add depth to db_debit
fetch_history returns a history structure.