db read/write test unit in multithreading environment