Set up mongo schemas and models, mongo safe exits.