Switched Zend DB adapter to use custom query object