Prepared the query handler for writing the result to the channel,
created the network buffer for handling packets inbound properly