Hard to tell without much information.

But my first impression is you are accessing the m_db from different QThread.