Functions - setUser()
This method sets the user for the database.
Setting Users
When you operate on the database you access it through a particular database users. With this method, you can define the user from within the function.
Syntax
db.setUser(<user>)
<user>
Defines the user.