Updated Database.js