mongodb connection fixes