Reduce database connections per http request

Web server will no longer create a database connection when a request is
for static content.