Converted DirectusPreferencesTableGateway to fully use zend and removed olddb usage