reseed database and format pages