Skip  non-oc tables on upgrade

Needs https://github.com/owncloud/3rdparty/pull/38

Should fix 
https://github.com/owncloud/core/issues/3848
https://github.com/owncloud/core/issues/3642

and more...