CREATE_TABLE = "create table user_data (last_check int);"; private static DbHelper instance; public static DbHelper getInstance(Context context) { if (instance == null) { instance = new DbHelper(context); } return instance; } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_TABLE); } public long getLastCheck() { Cursor cursor = getReadableDatabase(). query("user_data", null, null, null, null, null, null); long result = cursor.getLong(0); cursor.close(); return result; } } Again a simple singleton for our DatabaseHelper