Query methods
Break out decode
Resource interface to bring both queries and event writes into a standard format