only set id to last_insert_id if idType is autoincrement