Print error on bad database connection in httpd.js