db self consistency validation