Had it as a string initially but as DBWorker::prepare was using "const char *" exposed here as well.

AFAIS we could change DBWorker::prepare to take QString argument as there is anyways implicit QString copy on the way as QSqlQuery::prepare has only QString in the interface.