small improvement to returm the id for a new added row