check the protocol version at both ends; check the existance of tables