initial conversion of table insertion and management