can you check the returned value of query.exec() and try to read query results?