renamed macro WriteTotScalerReads.C to WriteNScRtoDB.C
updated macro WriteNScRtoDB.C for new database manager API