set up routing for real and DB-based pages