db.createUser({ user: 'mooctest', pwd: 'mooctest', roles: [ { role: 'readWrite', db: 'test' } ] })