Prof. Tawatnuntachai pointed me towards Compustat, which is a database of stocks and the info from their 10-K/Q balance, income, and cash flows statements. The slick part is they've built access to the database to be dumped, so you can easily export data from Compustat and import it into a local table in your RDBMS for futzing around with it.