Improved the web page handling in case of DB error