fixed repository concurrency
using MongoClient
added standalone node.js server