Simple table gateway class to allow simple database operations and unit testing