moved insert record to table scanner