Connect to mongoose if not already connected
This is so that the unit tests can run without requiring the server