fixed DB==nil;each page num
fixed DB==nil;each page num