work done on Database.js, added Globals.js file