Minor edits to insert_id queries.