add pages and db