This is my first time setting up an SQLite DataBase, and I'm having trouble figuring out how to control the cursor. Let's say my column names are (author,yearPublished, title) in that order. And lets say I already saved a few entries into the data base like:

1. Bob, 2007, "The Builder"
2. Jack, 2003, "The Headless Horseman"
3. Andy, 2012, "The Mysterious Legend"

So for each book title there is a button with the books name on it(For example, "The Builder" would be on a button the user created). The user can then click on this button, go to another activity page, and have information for this book already put in. For example, it's almost like a library where a new book comes in called "Green Eggs and Ham" by Dr.Seuss, published:1960. The user goes through the other parts of my app, entering the information for this book, thus saving the data into the SQLite database as an entry and creating a button with "Green Eggs and Ham" on it. And when the user clicks on this button, it leads to a page with information:

Author: Dr.Seuss/
Published: 1960/
Title: Green Eggs and Ham

My question is, how can I identify a title in my database like "Green Eggs and Ham" and then retrieve all the other information that came with it.

My thoughts on how I want it to work:

```
 cursor=DataBase.column("title").StringWithId("GreenEggsAndHam").getRowInformation();
 String title=cursor.get("title");
 int published=cursor.get("yearPublished");
 String author=cursor.get("author")

```

But obviously this isn't valid syntax.

My DataBase Code:

```
 public class DataHandler {
public static final String PRIORITY="priority";
public static final String LEASTHOURS="leastHours";
public static final String LEASTMINUTES="leastMinutes";
public static final String EXACTHOURS="exactHours";
public static final String EXACTMINUTES="exactMinutes";
public static final String SETHOURS="setHours";
public static final String SETMINUTES="setMinutes";
public static final String SETAMPM="setAmPm";
public static final String ACTIVITYNAME="activityName";
public static final String TABLE_NAME="mytable";
public static final String DATA_BASE_NAME="mydatabase";
public static final int DATABASE_VERSION=1;
public static final String TABLE_CREATE="create table mytable(name text not null,email text not null);";

DataBaseHelper dbhelper;
Context ctx;
SQLiteDatabase db;
public DataHandler(Context ctx)
{
    this.ctx=ctx;
    dbhelper=new DataBaseHelper(ctx);
}

private static class DataBaseHelper extends SQLiteOpenHelper
{

    public DataBaseHelper(Context ctx){

        super(ctx,DATA_BASE_NAME,null,DATABASE_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

        try{
        db.execSQL(TABLE_CREATE);
        }
        catch(RuntimeException e)
        {
            e.printStackTrace();
        }

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

        db.execSQL("DROP TABLE IF EXISTS mytable");
        onCreate(db);
    }

}

public DataHandler open()
{
    db=dbhelper.getWritableDatabase();
    return this;
}

public void close()
{
    dbhelper.close();
}

public long insertData(int priority, int leastHours,int leastMinutes,int exactHours,
        int exactMinutes,int setHours ,int setMinutes,String setAmPm,String activityName)
{
    ContentValues content=new ContentValues();
    content.put(PRIORITY, priority);
    content.put(LEASTHOURS, leastHours);
    content.put(LEASTMINUTES, leastMinutes);
    content.put(EXACTHOURS, exactHours);
    content.put(EXACTMINUTES, exactMinutes);
    content.put(SETHOURS, setHours);
    content.put(SETMINUTES, setMinutes);
    content.put(SETAMPM, setAmPm);
    content.put(ACTIVITYNAME, activityName);
    return db.insertOrThrow(TABLE_NAME, null, content);
}

public Cursor returnData()
{
    return db.query(TABLE_NAME, new String[]{PRIORITY,LEASTHOURS,LEASTMINUTES,
            EXACTHOURS,EXACTMINUTES,SETHOURS,SETMINUTES,SETAMPM,ACTIVITYNAME},
            null, null, null, null,null);
}

```

}