Added Table gateway support to repository