Switch deprecated (in mongo 2.6.x) function db.addUser to db.createUser; pass in roles to allow read/write when linking application to mongo database