And, of course, my logic was totally garbage.
```
if (oQuery.numRowsAffected() == 0 && (!updateAutoDjPlaylistReferences() || !updateLastPlayedDateTime())) {
```
should be
```
if (oQuery.numRowsAffected() == 0 || (updateAutoDjPlaylistReferences() && updateLastPlayedDateTime())) {
```