update databse, add inner pages