Update getResult.js

Pool connection added