I don't see how making games would be a waste. It is a fun way to get into coding, explore coding paradigms and learn good coding practices. And why should a game necessarily take few weeks? Make a small game... and forget flashy graphics, sound, etc. It can also get you to explore other interesting areas because for example you may need some simple physics, or you may need some AI for the "bad guys", etc... You would definitely learn a lot
The reality is that databases are pretty hardcore stuff, and you can write books on the whole topic. The entire area is imo, very dry and very specific. Its something you would do if you work for a giant corporation, not something you would pick up over the summer for funzies
EDIT:
btw learning Flash/Actionscript would be my second best recommendation. It lets you do quick and dirty stuff VERY quickly, no "starter code" is necessary, and can be very easily shared because it runs in a browser. it depends on what you want to do. You can do more with Python obviously. Flash is specifically tailored towards visual applications, and has SIGNIFICANT restrictions on access to computer files, and stuff like that...