Big Fix: make yodb work for multi-threaded environment