Replace static SMWSQLStore3::getPropertyTables call

Replace SMWSQLStore3::getPropertyTables with $this->store->getPropertyTables()
Replace wfGetDB call in SMWSQLStore3Writers::deleteSubject