debug get last id after save