Fixed CheckDB (missing paged) and some IO refactoring