Added output for no new codes and fixed id value in DB.