pull pages from db; populate db