I thought I had let a comment on this line but I can''t find it.

You could maybe use something like (untested):

```java
   database.update(dbTableWaypoints, values, "_id = ?", new Object[] { oneWaypoint.getId() });
```

which is safe in any case (here it is safe, but discouraged, to build the statement yourself).