Added autentificate for mongodb connections

Added autentificate for mongodb connections