db.js added to define databse connection