Revert "Merge pull request #4445 from Wikia/PLATFORM-404"

@drozdo / @artursitarski / @Wikia/platform-team / @nmonterroso 

This reverts commit 5a2919411f72541ab5bd9b2fd1970e7f7e4e7c81, reversing
changes made to c5bcf2c6bb55176112e22e7c94997c42ddf82ee5.

Reverts #4445

This change was causing issues in Reston (which is in permanent read only mode):

```
DB readonly mode: # WikiFactoryHub::loadCategories
 SELECT cat_id as id, cat_name as name, cat_url as url, cat_short as short, cat_deprecated as deprecated, cat_active as active
	 FROM city_cats
```

``Database::isWriteQuery`` is used in ``query`` method to "decide" whether the current query is a read or write . With ``# comment``:
* the regex simply fails
* ``query`` method returns false
* FluentSQL tries to call a method on false value
* PHP fatal is raised