implement latency searching with dummy database.