Adds case check for when Mongo isnt connected, and connects.