Fix create_app so mongo is configured correctly