Fix use of insert_id function in RC 1.0-rc