Add mutex to ChatDBHelper