Only MongoDB auth if useranme and password present

Basically for bypassing authentication during testing