Fixes hard-coded table names in queries.
Authored by: jplang 2008-07-22
Parent: [r1691]
Child: [r1693]