private static boolean updateDisabledStatus(final Geocache cache) {
        cache.addStorageLocation(StorageLocation.DATABASE);
        cacheCache.putCacheInCache(cache);
        Log.d("Updating disabled status of " + cache + " in DB");

        final ContentValues values = new ContentValues();
        values.put("disabled", cache.isDisabled() ? 1 : 0);

        init();
        try {
            database.beginTransaction();
            final int rows = database.update(dbTableCaches, values, "geocode = ?", new String[]{cache.getGeocode()});
            if (rows == 1) {
                database.setTransactionSuccessful();
                return true;
            }
        } catch (final Exception e) {
            Log.e("updateDisabledStatus", e);
        } finally {
            database.endTransaction();
        }

        return false;
    }
Save/store a cache to the CacheCache

@param caches the caches to save in the CacheCache/DB
main/src/main/java/cgeo/geocaching/storage/DataStore.java