Node API for the scanner api that connects to a Mongo db