Fix everything

__Update:__ On my local machine I need to run the tests with `php ../../tests/phpunit/phpunit.php --use-normal-tables tests`. If I do so the 80 WikibaseQuery tests finally succeed, again! Wow. I can't believe how seriously fu... up this was and still is.