Fix Call to undefined method SMWSparqlStore::getDatabase

Causes failure as reported by [0]

[0] http://wikimedia.7.x6.nabble.com/PHP-Fatal-error-php-rebuildData-php-p-tp5026625.html