added custom template for db error page and general error page.