Add table reading and writing