- Patch #226876 by csevb10, dave reid, et al: converted more queries to the new database abstraction layer.