Added catches for mongo errors (like disconnect/timeout) so the app no longer crashes in the absence of a db.