First Clean up for static issues in CondCore/DB Packages

Clean up of most of the non-const statics + few control flow issues