Created addType() to insert data into certain data tables.