concurrency: one mutex for each situation.
just reading dbCopy to get queries should not be a problem, even if it is being updated.