Support SQL as a protocol, close #295