edit MONGO connect method