added block_index column to tables of credits and debits
most of rollback functionality; misc. tweaks; new DB version