add username and password options when connecting to mongodb

It would be nice to allow username and password connections for mongodb. This is a essential if using a database as a service provider like Mongo Labs. 
Please let me know if you need anything else.