DatabaseBase::query - autogenerate $fname if not passed

@Wikia/platform-team

Resolves https://wikia-inc.atlassian.net/browse/PLATFORM-404 (@nmonterroso)

This will make #4752 not needed

An example of SQL query performed via WikiaSQL:

```
Query: $fname autogenerated, please pass __METHOD__ to the query() call!
Query statsdb_mart (9) (master): SELECT /* DataMartService:getSumPageviewsMonthly  */ SUM( pageviews ) AS cnt, time_id   FROM rollup_wiki_pageviews  ...
```