Changes to database.js file