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

DatabaseBase::query - autogenerate $fname if not passed
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