You're doing this pattern of maybe wrapping the query in parens and joining with " OR " in a couple places -- maybe make a utility function to do it? Or since the duplicate parentheses are ignored by SQLite anyway, maybe it's simpler code-wise to just make a QStringList of the elements and then ```QString("(%1)").arg(list.join(" OR "))``` them.