Added mongoose imports
Added Comments
Added comments
Changed to session authentication
Implemented mongoDB functionality