fixed inserting a list function, added inserting a table function