mongodb connection / fork fix