def formatTypes(types):
    """
    returns a string "type1;type2;" for the database
    """
    res = ""
    for i in range (len(types) - 1, -1, -1):
        res += types[i]["type"]["name"] + ";"
    return res