Save last inserted id