def create_task(conn, task):
    """
    Create a new task
    :param conn:
    :param task:
    :return:
    """
    sql = """ INSERT INTO vencodes(name,priority,status_id,project_id,begin_date,end_date)
              VALUES(?,?,?,?,?,?) """
    cur = conn.cursor()
    cur.execute(sql, task)
    return cur.lastrowid
