Some more compatibility updates to Zend Db adapter