log mongodb connection