add simple Put/Get method with test

1) refactoring out getConnection() method
2) add Get/Put method and corresponding TestExample
3) using load pattern to close table