changing insert_record_raw()