Initialize pages from db