Add connect() to some commands.

Merged Andrey Vertiprahov requested to merge fix-avs-connect-mongo-on-command into master

Add connect() to some commands.

Merge request reports