Just removed unnecessary variables within database.js and also made it so can return after calling the function.
Documented and created an addUser function, which updates or inserts a new user into the User collection of the database. close #1