update db.js to use environment variable