implemented loading and storing the tables