implement client msg reply method
 add query, insert, search, snapshot command for client