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

DatabaseBase::query - autogenerate $fname if not passed