add DB source and ES prefer for gedelectron ECAL regressions, fix a crash