Database.js updated