This code at database.js:238 throws an `undefined` error if the connection fails. ` pool.connect(function(err, client, done) {` ` client.query(sql, function(err, data) {` It should instead display the contents of the `err` variable.