Added auth and database selection

Required for some replica set servers. WIthout these changes you cannot
connect to monitor.