private Cursor openCursorFor(final SQLiteDatabase db, final String limitOverride) {
            return db.query(
                    this.table, this.columns, this.whereClause, this.whereArgs, this.groupBy, this.having,
                    this.orderBy, limitOverride == null ? this.limit : limitOverride
            );
        }
if returned id is < 0 then there is no offline log for given geocode
main/src/main/java/cgeo/geocaching/storage/DataStore.java