Prepare database format for multi-stage block processing

This commit adds a status field and a transaction counter to the block
indexes.