get last id on inserts; place into entity data on put()