Added functions to add a new row to the table and create table from data