New method accelerates data retrieval in huge databases