injected permission data to mongo db