Fix mongodbConnection variable