Hi

I have 2 sql class
Code:
public class DbHelper extends SQLiteOpenHelper {

	private static final int DATABASE_VERSION = 1;
	public static final String CATEGORIAS = "categorias";
	public static final String lOCAIS = "locais";
	private static final String DATABASE_NAME = "glocal.db";
	public static final String ID = "_id";
	public final static String NOME = "nome";
	public static final String DES = "des";
	public static final String CAT = "cat";
	public static final String PAIS = "pais";
	public static final String LAT = "lon";
	public static final String LON = "lat";
	public static final String FOTO = "foto";
	

	private static final String CATEGORIAS_TABLE_CREATE = "create table "
			+ CATEGORIAS + "( " + ID
			+ " integer primary key autoincrement, " + 
			NOME + " text not null, " +
			DES + " text not null );";
	
	private static final String LOCAIS_TABLE_CREATE = "create table "
			+ lOCAIS + "( " + ID
			+ " integer primary key autoincrement, " + 
			NOME + " text not null, " +
			DES + " text not null, " +
			CAT	+ "text not null, " +
			PAIS+ "text not null, " +
			LAT+ "text not null, " +
			LON+ "text not null, " +
			FOTO+" BLOB);";
	
	public DbHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
		//super()
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CATEGORIAS_TABLE_CREATE);
		db.execSQL(LOCAIS_TABLE_CREATE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		Log.w(DbHelper.class.getName(), "Upgrading database from version " + oldVersion + " to "	+ newVersion + ", which will destroy all old data");
	db.execSQL("DROP TABLE IF EXISTS " + CATEGORIAS_TABLE_CREATE);
	db.execSQL("DROP TABLE IF EXISTS " + LOCAIS_TABLE_CREATE);
		onCreate(db);
	}
	
}
And the other

Code:
public Locais createLocal(String nome, String cat, String pais, String lat, String lon, Bitmap foto) {
		ContentValues values = new ContentValues();
		values.put(DbHelper.NOME, nome);
		values.put(DbHelper.CAT, cat);
		values.put(DbHelper.PAIS,pais);
		values.put(DbHelper.LAT,lat);
		values.put(DbHelper.LON,lon);
			
		ByteArrayOutputStream baos = new ByteArrayOutputStream();  
		foto.compress(Bitmap.CompressFormat.PNG, 100, baos);  
		byte[] photo = baos.toByteArray(); 
			
		values.put(DbHelper.FOTO, photo);
			
		long insertId = database.insert(DbHelper.lOCAIS, null, values);
		// To show how to query
		Cursor cursor = database.query(DbHelper.lOCAIS, allColumns, DbHelper.ID + " = " + insertId, null,null, null, null);
		cursor.moveToFirst();
		return cursorToLocal(cursor);
	}
	
	public void EliminaLocal (int idContacto){
		database.delete(DbHelper.lOCAIS, DbHelper.ID + " = " + idContacto, null);
		}
How can i create a update in this last class?

Thank you