Diagnosing database issue with block chain