added database support for the web page views