Add changes for creating clients using mongo repository