all cpu threads are able to query db