inser without segfault,  

relCatalog and attrCatalog to be added , and index functionality too