updated examples to use use_connection.

The current version didn't work anymore. It's being fixed with this patch.

--
Jeffrey