Replace wfGetDB call in SMWSQLStore3Writers::deleteSubject

Is part of #235 to allow injecting Database mock to avoid untested DB writes when `PHPUnit_Framework_TestCase` is used.

- Removes static SMWSQLStore3::getPropertyTables calls
- Adds SqlStoreWriterOnDeleteSubjectTest