refresh method

Added `refresh` method to reconnect to server. Useful to recover the connection while using transactions (e.g. invoking `flush`) before sending the ORM statement.