def get_vacancies_lite(conn, full=False):
    """
    Retrieves list of jobs from db.
    :param conn: db connection object.
    :param full: if True retrieves full information about vacancies,
    otherwise gets "organization", "title" and "deadline".
    :return: list with query results.
    """
    # Create cursor.
    cur = conn.cursor()
    # Query for the information to retrieve from db.
    if full:
        query = "SELECT job_id, title, location, deadline, organization, html, reopen FROM vacancies;"
    else:
        query = "SELECT organization, title, deadline FROM vacancies;"

    # Execute query and get all results.
    cur.execute(query)
    rows = cur.fetchall()

    return rows