Last_id is now saved when there is a new one