Changes to Javascript database.js file