Query database payloads as bytes instead of strings