I wrote a spell database years ago and recently ported it to Google's AppEngine so its publicly available again: http://luthspells.appspot.com/
Searching or retrieving the list of spells for classes can be a little slow if the site hasn't been accessed recently (so tell your friends :p)
For programmers, you can retrieve any spell in JSON with: http://luthspells.appspot.com/spell?id={spellId} and if I get around to it I will probably open source at least the parser.