changed TableGateway to AbstractTableGateway