adding pages and menus to database