added in {name: db} object model to RS db users.js.  Added in separate f...

...unctionality for database for backwards compatibility.

Similar to PR #300, but this one allows both 'database' and 'databases'.  It seems that #300 breaks testing, so wanted to submit this one  as well and ya'll can take whichever you prefer.
should this say `required == 'database'`...