Fixed query in prehash/srrdb part