use dbnome
var user = { "user" : "website", "pwd" : "abc123", roles : [ { "role" : "readWrite", "db" : "dbnome" } ] }
db.createUser(user);
exit
db.createUser( { user: "user", pwd: "password", roles:[{role:'root', db:'admin'}] })
mongodb://user:password@host:port/db?authSource=admin