You mean a vector of DB records?
If multiple threads (clients) can add/remove items from the vector (which is probably true for any of the assignments), yes then
you should lock on the vector before proceeding. The thread-safety provided by the vector class is not sufficient.