read pagesData from db