A NodeJS controller for mongodb