add total_changes to ugly db object.  chg test case to use ugly call instead of raw, not that it makes much difference in this very simple case.