Fixed issue with anonymous connections in MongoDB