Node oauth API for interacting with MongoDB database