Upgraded to new database module. Also, cleaned up inconsistent code.
Upgraded to new database module
Missed a few phpDoc blocks for db module upgrade
Upgraded search module to use new db module
Upgraded snippet module to new db module