add pages to db