Wikipedia's like any other on-line resource, you have to be careful, and check other references. Here it's OK. And all the music theory sections I've looked at have been OK.
Expanding slighly on what Pete said, when music's written, each scale has all 7 letters/notes. To maintain the sound of the scale and retain the lettes, we need to eithe sharpen or flatten some/all of the notes in the scale. Simplest major scale is C, where no notes are sharpened or flattened. Next is G, where only the F is sharpened. But when start on F, then to get the half tone afte the two full tones, we need to flatten B. All good so far..... Cos there's a key for Bb. On the piano, and on the sax.
Now going slightly sideways, as we add more sharps or flats, sooner or late you're going to need to sharpen E (for isntance). And there isn't a black key on the piano - neither is there an extra key on the sax. Cos the next note a halftone above the E is the F. So E# is the same key on the instrument as F.
Strange, but it has a few advantages - a couple being:
First is as already said, that the scale always has all 7 letters in the note names.
Second is that as you look at a chord written on the stave, it's much easier to recognise the chord - because the notes are on their normal lines/spaces (Fb doesn't shift down to the E line, but stays on the F space....
As for the Db being equivalent to C#, go to the piano and following the rules FFHFFFH go up the keyboard seeing which notes you play. As Pete says, it's C#, D#, E#, F#, G#, A#, B# and back to C#. Now it just so happens that if you start on Db, you press the same keys, in the same order - but it's easier to name the notes, as it's Db, Eb,F, Gb, Ab, Bb, C.... only 5 flats, instead of 7 sharps, and the hassle fo remembering that E# is F. And so for simplicity, Db is sometimes prefered to C# as a key signature.
If you're not sure about minors, look up relative minor - C major has a relative minor of A. And so on.