Update MongoDB to a new port handling functions