working on CRUD operations for table gateway class