Added __checkDB implementation.