simulate multi-thread access sql