cached queries need to be reset on schema change because they become inv...

...alid

fixes: https://github.com/owncloud/apps/issues/468

@jakobsack @bartv2 @zimba12 @MTGap