update SelectWinningChainedBlock to allow no winner
clean up indexes
fix case sensitivity issue causing blockchain files to be deleted