updated db2.js