def convert_contract(contract):
    """
    Map a contract from the DB format to what we want to send back
    """
    return {
        "_id": contract["_id"],
        "title": contract["temp_type"],
        "body": contract["template"],
    }