Added MongoDB support
Changed the logic to get the current token