Fix for Too many connections to MongoDB #1