Implement plain queries and the text protocol