DatabaseBase::query - autogenerate $fname if not passed
Merge pull request #4753 from Wikia/database-autogenerate-fname

DatabaseBase::query - autogenerate $fname if not passed