make insert_record public