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

DatabaseBase::query - autogenerate $fname if not passed