Fix SQL query generation with Qt6
Strings are now also sequentially iterable in a QVariant, so we ended up generating query bindings for each character in string values in SQL conditions here.
This makes a bunch of unit tests pass and actually allows Akonadi to start up without tons of database errors now.