redirect pages and added database