I am writing a multithreading database. I will receive multiple queries from multiple tables. I classified them into different tables and addopted the reader/writer approach